// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'MaintainWorkTypeId',
        footer: "Foots",
        cnName: '维护作业类型',
        name: 'MaintainWorkType',
        newTabEdit: false,
        url: "/MaintainWorkType/",
        sortName: "MaintainWorkTypeId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"MaintainWorkTypeClassfiyId":[],"Code":"","Name":"","IsEnabled":""};
    const editFormOptions = [[{"dataKey":"作业类型分类级联","data":[],"title":"维护作业类型分组","field":"MaintainWorkTypeClassfiyId","type":"cascader"}],
                              [{"title":"编码","field":"Code","type":"text"}],
                              [{"title":"名称","field":"Name","type":"text"}],
                              [{"dataKey":"是否","data":[],"title":"是否启用","required":true,"field":"IsEnabled","type":"select"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'MaintainWorkTypeId',title:'维护作业类型标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'MaintainWorkTypeClassfiyId',title:'维护作业类型分组',type:'int',bind:{ key:'作业类型分类级联',data:[]},width:80,hidden:true,align:'left'},
                       {field:'Code',title:'编码',type:'string',width:110,align:'left'},
                       {field:'Name',title:'名称',type:'string',width:110,align:'left'},
                       {field:'IsEnabled',title:'是否启用',type:'int',bind:{ key:'是否',data:[]},width:110,require:true,align:'left'},
                       {field:'CreateID',title:'创建人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Creator',title:'创建人名称',type:'string',width:100,align:'left'},
                       {field:'CreateDate',title:'创建日期',type:'datetime',width:110,align:'left'},
                       {field:'ModifyID',title:'修改人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Modifier',title:'修改人名称',type:'string',width:100,align:'left'},
                       {field:'ModifyDate',title:'修改日期',type:'datetime',width:110,align:'left'},
                       {field:'AuditDate',title:'审核日期',type:'datetime',width:110,align:'left'},
                       {field:'AuditStatus',title:'审核状态',type:'int',bind:{ key:'audit',data:[]},width:110,align:'left'},
                       {field:'AuditId',title:'审核人标识',type:'int',width:110,align:'left'},
                       {field:'Auditor',title:'审核人',type:'string',width:120,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}